package com.timo.constant;

/**
 * @Description: 类用途：
 * @Author: Timo
 * @Date: 2019/7/24 10:04
 */
public class RabbitMqConstant {
    public static final String ss = "";

    /**
     * Fanout 类型的交换器
     */
    public enum FanoutExchangeEnum{
        HELLO_FANOUT_EXCHANGE("HELLO_FANOUT_EXCHANGE"),
        TIMO_PUB_SUB_FANOUT_EXCHANGE("TIMO_PUB_SUB_FANOUT_EXCHANGE"),
        TIMO_TWO_PUB_SUB_FANOUT_EXCHANGE("TIMO_TWO_PUB_SUB_FANOUT_EXCHANGE"),
        ORDER_FANOUT_EXCHANGE("ORDER_FANOUT_EXCHANGE");
        public String name;

        FanoutExchangeEnum(String name) {
            this.name = name;
        }
    }


    /**
     * Fanout 类型的队列
     */
    public enum FanoutQueueEnum{
        HELLO_FANOUT_QUEUE("HELLO_FANOUT_QUEUE"),
        ORDER_FANOUT_QUEUE("ORDER_FANOUT_QUEUE");
        public String name;

        FanoutQueueEnum(String name) {
            this.name = name;
        }
    }


    /**
     * Direct 类型的交换器
     */
    public enum DirectExchangeEnum{
        HELLO_DIRECT_EXCHANGE("hello.direct.exchange"),
        ORDER_DIRECT_EXCHANGE("order.direct.exchange");
        public String name;

        DirectExchangeEnum(String name) {
            this.name = name;
        }
    }


    /**
     * Direct 类型的队列
     */
    public enum DirectQueueEnum{
        HELLO_DIRECT_QUEUE("hello.direct.queue"),
        ORDER_DIRECT_QUEUE("order.direct.queue");
        public String name;

        DirectQueueEnum(String name) {
            this.name = name;
        }
    }


    /**
     * topic 类型的交换器
     */
    public enum TopicExchangeEnum{
        FOO_TOPIC_EXCHANGE("foo.topic.exchange");
        public String name;

        TopicExchangeEnum(String name) {
            this.name = name;
        }
    }


    /**
     * topic 类型的队列
     */
    public enum TopicQueueEnum{
        FOO_TOPIC_QUEUE("foo.topic.queue"),
        FOO_INSERT_TOPIC_QUEUE("foo.insert.topic.queue"),
        FOO_UPDATE_TOPIC_QUEUE("foo.update.topic.queue"),
        FOO_DELETE_TOPIC_QUEUE("foo.delete.topic.queue")
        ;
        public String name;

        TopicQueueEnum(String name) {
            this.name = name;
        }
    }





}
